package com.xxx.sso.repo;

import com.xxx.sso.entity.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author caiwl
 * @date 2020/4/29 16:04
 */
public interface OrganizationRepo extends JpaRepository<Organization, Long> {
    /**
     * 根据组织名称模糊查询
     * @param name 组织名称
     * @return
     */
    List<Organization> findByNameContaining(@Param("name") String name);
}
